package com.liang.design;

/**
 * @author Liangyaoyun
 */
public class Dog {
    //先弄一个构造器
    private  Dog(){

    }
    private  String name;
    private  int age;
    //创建一个实例
    private static final Dog dog = new Dog();
    //方法
    public  static  Dog inSert(){
        return dog;
    }
}
